from django.conf.urls.defaults import patterns, include, url

urlpatterns = patterns('main.views',
    url(r'^$', 'index', name='home'),
    url(r'^users/$', 'users', name='users'),
    url(r'^news/$', 'index', name='news'),
    url(r'^news/(?P<category>\w+)/$', 'newsByCategory', name='newsByCategory'),
    url(r'^contact/$', 'contact', name='contact'),
    url(r'^accounts/login/$', 'login', name='login'),
    url(r'^accounts/register/$', 'register', name='register'),
    url(r'^accounts/logout/$', 'logout', name='logout'),
    url(r'^accounts/password/change/$', 'change_password', name='change_password'),
    url(r'^accounts/password/reset/$', 'forgotten', name='forgotten'),
    url(r'^userpage/$', 'userpage', name='userpage'),
    url(r'^ajax/additionaldata/$', 'ajax_getAdditionalData', name='getAdditionalData'),
    url(r'^user/rss/(?P<rssId>\d+)/delete/$', 'rssManage', name='rss_manage'),
    url(r'^user/rss/$', 'rssManager', name='rss_manager'),
    url(r'^user/favorites/edit/$', 'favoriteEdit', name='favoriteEdit'),
#    url(r'^user/favorites/$', 'favoriteManager', name='favoriteManager'),
	
#Examples:
#    url(r'^(?P<poll_id>\d+)/$', 'detail'),
#    url(r'^(?P<poll_id>\d+)/results/$', 'results'),
#    url(r'^(?P<poll_id>\d+)/vote/$', 'vote'),
)
